<?php
/**
 * @Author: anchen
 * @Date:   2017-05-23 20:30:10
 * @Last Modified by:   anchen
 * @Last Modified time: 2017-05-26 19:44:38
 */

//拒绝非法访问
defined('ACCESS_KEY9296')||exit('denied');

//递归转义数组 
function _addslashes($arr){
    foreach($arr as $k=>$v){
        if(is_string($v)){
            $arr[$k] = addslashes($v);
        }
        else if(is_array($v)){  //递归调用
            $arr[$k] = _addslashes($v);
        }
    }
    return $arr;
}